package jgl.vajra.management.widget.retrofithelper;

import jgl.vajra.management.widget.utils.CommonUtils;

import okhttp3.Call;
import okhttp3.Headers;
import okhttp3.OkHttpClient;
import okhttp3.Request;

public class MyClient extends OkHttpClient {


    @Override
    public Call newCall(Request request) {
        Headers headers = request.headers();

        if (request.method() == "GET") {
            Headers.Builder headerBuilder = headers.newBuilder();
            CommonUtils.getValueByName(request.url().toString());
            headerBuilder.add("");
        }
        return super.newCall(request);

    }
}


